package model

type Likes struct {
	UId           `xorm:"extends index(pt)"`
	TimeModel     `xorm:"extends"`
	LikesSelector `xorm:"extends"`
}
type LikesSelector struct {
	// replyId/PostId
	PRId int64 `json:"pr_id" xorm:"pr_id index(pt) not null default 0 bigint"`
	// 喜欢类型,1为回复,2为帖子
	Type int64 `json:"type" xorm:"type index(pt) not null default 0 int"`
}

const (
	_ int64 = iota
	LikesType_Reply
	LikesType_Post
)
